package com.innoking.docsys.user.module;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * UPMS_ROLE
 * @author 
 */
public class UpmsRoleVO implements Serializable {
    private Integer roleId;

    private String name;

    private String title;

    private String description;

    private Long ctime;

    private Long orders;

    private String str1;

    private String str2;

    private String str3;

    private String str4;

    private String str5;

    private BigDecimal auditRole;

    private BigDecimal deptArea;

    private Short docMgr;

    private Short docLevel;

    private Short docEdit;

    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    public String getStr1() {
        return str1;
    }

    public void setStr1(String str1) {
        this.str1 = str1;
    }

    public String getStr2() {
        return str2;
    }

    public void setStr2(String str2) {
        this.str2 = str2;
    }

    public String getStr3() {
        return str3;
    }

    public void setStr3(String str3) {
        this.str3 = str3;
    }

    public String getStr4() {
        return str4;
    }

    public void setStr4(String str4) {
        this.str4 = str4;
    }

    public String getStr5() {
        return str5;
    }

    public void setStr5(String str5) {
        this.str5 = str5;
    }

    public BigDecimal getAuditRole() {
        return auditRole;
    }

    public void setAuditRole(BigDecimal auditRole) {
        this.auditRole = auditRole;
    }

    public BigDecimal getDeptArea() {
        return deptArea;
    }

    public void setDeptArea(BigDecimal deptArea) {
        this.deptArea = deptArea;
    }

    public Short getDocMgr() {
        return docMgr;
    }

    public void setDocMgr(Short docMgr) {
        this.docMgr = docMgr;
    }

    public Short getDocLevel() {
        return docLevel;
    }

    public void setDocLevel(Short docLevel) {
        this.docLevel = docLevel;
    }

    public Short getDocEdit() {
        return docEdit;
    }

    public void setDocEdit(Short docEdit) {
        this.docEdit = docEdit;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsRoleVO other = (UpmsRoleVO) that;
        return (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders()))
            && (this.getStr1() == null ? other.getStr1() == null : this.getStr1().equals(other.getStr1()))
            && (this.getStr2() == null ? other.getStr2() == null : this.getStr2().equals(other.getStr2()))
            && (this.getStr3() == null ? other.getStr3() == null : this.getStr3().equals(other.getStr3()))
            && (this.getStr4() == null ? other.getStr4() == null : this.getStr4().equals(other.getStr4()))
            && (this.getStr5() == null ? other.getStr5() == null : this.getStr5().equals(other.getStr5()))
            && (this.getAuditRole() == null ? other.getAuditRole() == null : this.getAuditRole().equals(other.getAuditRole()))
            && (this.getDeptArea() == null ? other.getDeptArea() == null : this.getDeptArea().equals(other.getDeptArea()))
            && (this.getDocMgr() == null ? other.getDocMgr() == null : this.getDocMgr().equals(other.getDocMgr()))
            && (this.getDocLevel() == null ? other.getDocLevel() == null : this.getDocLevel().equals(other.getDocLevel()))
            && (this.getDocEdit() == null ? other.getDocEdit() == null : this.getDocEdit().equals(other.getDocEdit()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode());
        result = prime * result + ((getStr1() == null) ? 0 : getStr1().hashCode());
        result = prime * result + ((getStr2() == null) ? 0 : getStr2().hashCode());
        result = prime * result + ((getStr3() == null) ? 0 : getStr3().hashCode());
        result = prime * result + ((getStr4() == null) ? 0 : getStr4().hashCode());
        result = prime * result + ((getStr5() == null) ? 0 : getStr5().hashCode());
        result = prime * result + ((getAuditRole() == null) ? 0 : getAuditRole().hashCode());
        result = prime * result + ((getDeptArea() == null) ? 0 : getDeptArea().hashCode());
        result = prime * result + ((getDocMgr() == null) ? 0 : getDocMgr().hashCode());
        result = prime * result + ((getDocLevel() == null) ? 0 : getDocLevel().hashCode());
        result = prime * result + ((getDocEdit() == null) ? 0 : getDocEdit().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleId=").append(roleId);
        sb.append(", name=").append(name);
        sb.append(", title=").append(title);
        sb.append(", description=").append(description);
        sb.append(", ctime=").append(ctime);
        sb.append(", orders=").append(orders);
        sb.append(", str1=").append(str1);
        sb.append(", str2=").append(str2);
        sb.append(", str3=").append(str3);
        sb.append(", str4=").append(str4);
        sb.append(", str5=").append(str5);
        sb.append(", auditRole=").append(auditRole);
        sb.append(", deptArea=").append(deptArea);
        sb.append(", docMgr=").append(docMgr);
        sb.append(", docLevel=").append(docLevel);
        sb.append(", docEdit=").append(docEdit);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}